package ch7;
//鳄鱼
public class Crocodile extends Pet {
    private String breed;

    public Crocodile(String name, int health, int love, String sex, String breed) {
        super(name, health, love, sex);
        this.breed = breed;
    }

    public void xiaDan() {
        System.out.println("下蛋");
    }

    public void youYong() {
        System.out.println(this.getName()+"在水里游泳");
    }

    public void print() {
        System.out.println("他的品种是："+this.breed+"，非常凶猛，要注意安全");
        super.print();
    }
}

